package cn.thoughtworks.school.repositories;


import cn.thoughtworks.school.entities.SerialSubscription;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface SerialSubscriptionRepository extends JpaRepository<SerialSubscription,Long> {
  Optional<SerialSubscription> findByUserIdAndSerialId(Long userId, Long serialId);
}
